package com.chenyue.cm.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品库存变动表
 * </p>
 *
 * @author Lbx
 * @since 2024-02-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="JdGoodsStockLog对象", description="商品库存变动表")
public class JdGoodsStockLog extends Model<JdGoodsStockLog> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "skuId")
    private String skuId;

    @ApiModelProperty(value = "变动类型( 新增 修改 0：出库 1：入库  2：售卖:3：退货 4取消订单 )")
    private Integer logType;

    @ApiModelProperty(value = "原有数量")
    private Integer originalNum;

    @ApiModelProperty(value = "变动数量")
    private Integer changeNum;

    @ApiModelProperty(value = "变动后数量")
    private Integer resultNum;

    @ApiModelProperty(value = "备注信息")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    private String createTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
